package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.YouWorldOrderRecord;
import com.ecoolex.discount.sales.entity.YouWorldOrderRecordExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface YouWorldOrderRecordMapper {
    long countByExample(YouWorldOrderRecordExample example);

    int deleteByExample(YouWorldOrderRecordExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YouWorldOrderRecord record);

    int insertSelective(@Param("record") YouWorldOrderRecord record, @Param("selective") YouWorldOrderRecord.Column ... selective);

    YouWorldOrderRecord selectOneByExample(YouWorldOrderRecordExample example);

    List<YouWorldOrderRecord> selectByExample(YouWorldOrderRecordExample example);

    YouWorldOrderRecord selectByPrimaryKey(Long id);

    YouWorldOrderRecord selectByPrimaryKeyWithLogicalDelete(@Param("id") Long id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") YouWorldOrderRecord record, @Param("example") YouWorldOrderRecordExample example, @Param("selective") YouWorldOrderRecord.Column ... selective);

    int updateByExample(@Param("record") YouWorldOrderRecord record, @Param("example") YouWorldOrderRecordExample example);

    int updateByPrimaryKeySelective(@Param("record") YouWorldOrderRecord record, @Param("selective") YouWorldOrderRecord.Column ... selective);

    int updateByPrimaryKey(YouWorldOrderRecord record);

    int batchInsert(@Param("list") List<YouWorldOrderRecord> list);

    int batchInsertSelective(@Param("list") List<YouWorldOrderRecord> list, @Param("selective") YouWorldOrderRecord.Column ... selective);

    int logicalDeleteByExample(@Param("example") YouWorldOrderRecordExample example);

    int logicalDeleteByPrimaryKey(Long id);
}